From: Colin Walters Date: Thu, 20 Nov 2008 15:47:13 +0000 (+0000) Subject: Fix up previous change; connect to signals correctly X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~11574 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4840b813cae09b644671c365b6ac3e36adabcc3c;p=gnome-shell.git Fix up previous change; connect to signals correctly svn path=/trunk/; revision=66 --- diff --git a/js/ui/main.js b/js/ui/main.js index 882e34b2e..5b21ea41b 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -32,10 +32,12 @@ function start() { // Make sure not more than one run dialog is shown. if (!run_dialog) { run_dialog = new RunDialog.RunDialog(); - run_dialog.on_run = run_dialog.on_cancel = function() { + let handler = function() { run_dialog.destroy(); run_dialog = null; }; + run_dialog.connect('run', handler); + run_dialog.connect('cancel', handler); run_dialog.show(); } });